cmake_minimum_required(VERSION 3.0.2)

project(data_structure_exp)

find_package(yaml-cpp REQUIRED)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build)

include_directories(${PROJECT_SOURCE_DIR}/include)
add_executable(Joseph "src/Joseph.cpp")
add_executable(Stack "src/Stack.cpp")
add_executable(HuffmanCode "src/HuffmanCode.cpp")
add_executable(Graph "src/Graph.cpp")


target_link_libraries(Joseph yaml-cpp)
target_link_libraries(Stack yaml-cpp)
target_link_libraries(HuffmanCode yaml-cpp)
target_link_libraries(Graph yaml-cpp)